package cn.zeal4j.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.List;

/**
 * @author Administrator
 * @file IntelliJ IDEA Hibernate-Tutorial
 * @create 2020 09 26 19:59
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee implements Serializable {
    private static final long serialVersionUID = -6524261539072181203L;
    private Integer employeeNo;
    private String employeeName;
    private Department department;// 多个员工中的每一个员工对应一个部门
}
//    public Employee() {
//    }
//
//    public Employee(Integer employeeNo, String employeeName, Department department) {
//        this.employeeNo = employeeNo;
//        this.employeeName = employeeName;
//        this.department = department;
//    }
//
//    public Integer getEmployeeNo() {
//        return employeeNo;
//    }
//
//    public void setEmployeeNo(Integer employeeNo) {
//        this.employeeNo = employeeNo;
//    }
//
//    public String getEmployeeName() {
//        return employeeName;
//    }
//
//    public void setEmployeeName(String employeeName) {
//        this.employeeName = employeeName;
//    }
//
//    public Department getDepartment() {
//        return department;
//    }
//
//    public void setDepartment(Department department) {
//        this.department = department;
//    }

